

<% var pageLevelJS = { %>
<%include("/WEB-INF/views/btl/template/include/select2.html"){}%>
<script type="text/javascript" src="${plugin}/data_location/jquery.citys.js"></script>
<script type="text/javascript">
var settings = {
		  modelDomainFlag:"info"
		 ,modelFlag:"person"
		 ,formId:"applyeditForm"
		}		
</script> 
<script type="text/javascript" src="${ctx}/static/js/info/person/edit.js"></script>
<%};%> 
<% var layoutParas =
{"title":"","add":isEmpty(data.id),"formId":"applyeditForm","pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicEditFormTemplate.html", layoutParas){ %>
	<input type="hidden" id="id" name="id" value="${data.id!}">
				<input type="hidden"  valid="true" name="educationName" oldval="${data.educationName!}" value="${data.educationName!}">
				<input type="hidden"  valid="true" name="nationName" oldval="${data.nationName!}" value="${data.nationName!}">
				<input type="hidden"  valid="true" name="maritalStatusName" oldval="${data.maritalStatusName!}" value="${data.maritalStatusName!}">
		  		<input type="hidden"  valid="true" name="politicalName" oldval="${data.politicalName!}" value="${data.politicalName!}">
		  		 <div class="col-xs-12 "  >
						  <div class="form-group  col-md-5">
						     <label class="required-before col-sm-3 control-label no-padding-right" for="name_text">名称：</label>
						      <div class="col-sm-9 inline-height">
								<input type="text" oldval="${data.nameStr!}" value="${data.nameStr!}" class="col-xs-10 validate[required,maxSize[50]] " name="nameStr" placeholder="名称">
						  		</div>
						  </div> 
						   <div class="form-group col-md-5">
							<label class="required-before col-sm-3 control-label no-padding-right" for="nationalId">身份证号：</label>
							<div class="col-sm-9 inline-height">
								<input type="text" oldval="${data.nationalId!}" value="${data.nationalId!}" name="nationalId" placeholder="身份证号" class="col-xs-10 validate[required,maxSize[18]]" />
						  	</div>
						  </div> 
						   <div class="form-group col-md-5">
						     <label class="col-sm-3 control-label no-padding-right" for="birthday">出生日期：</label>
						     <div class="col-sm-9 inline-height">
								<input  style="height:32px;" oldval="${data.birthday!,dateFormat='yyyy-MM-dd'}" value="${data.birthday!,dateFormat='yyyy-MM-dd'}"  class="col-xs-10 Wdate" type="text" name="birthday" id="startDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"    placeholder="日期"/>
						 	 </div>
						  </div> 
						   <div class="form-group col-md-5">
							<label class="col-sm-3 control-label no-padding-right" for="mobilePhone">电话：</label>
							 <div class="col-sm-9 inline-height">
								<input type="text" oldval="${data.mobilePhone!}" value="${data.mobilePhone!}" name="mobilePhone" placeholder="电话" class="col-xs-10 validate[custom[mobile],maxSize[200]]" />
							  </div> 
						  </div> 
						  <div class="form-group col-md-5">
						     <label class="col-sm-3 control-label no-padding-right" for="email">邮箱：</label>
						      <div class="col-sm-9 inline-height">
								<div class="parentCls col-xs-10" style="display: inline;padding-left: 0px;padding-right: 0px">
						       	 <input type="text" oldval="${data.email!}" value="${data.email!}" w="100%"  class="col-xs-12 validate[custom[email],maxSize[50]] inputElem" name="email" placeholder="邮箱">
						     	</div>
						  		</div> 
						  </div> 
						  <div class="form-group col-md-5">
							<label class="col-sm-3 control-label no-padding-right" for="politicalCode">政治背景：</label>
						    <div class="col-sm-9 inline-height">
							<select prefix="political" name="politicalCode" class="col-xs-10" placeholder="政治背景"  oldval="${data.politicalCode!}">
							  <option value="">--政治背景--</option>
							  <% for(res in politicalitem!){ %>
							  <option value="${res.code}"
							  <%if(has(data) && data.politicalCode==res.code){%>
								  selected="selected"
								 <%}%>
							  >${res.name}</option>
						　　   <% } %>
							</select>
						  </div> 
						  </div> 
						   <div class="form-group col-md-5">
							<label class="col-sm-3 control-label no-padding-right" for="remark_s">备注：</label>
							<div class="col-sm-9 inline-height">
								<input type="text" oldval="${data.remark!}" value="${data.remark!}" name="remark" placeholder="备注" class="col-xs-10 validate[maxSize[200]]" />
						  	</div> 
						  </div> 
					       <div class="form-group col-md-5">
							<label class="col-sm-3 control-label no-padding-right" for="sex">性别：</label>
						    <div class="col-sm-9 inline-height">
								<select name="sex" class="col-xs-10" placeholder="性别"  oldval="${data.sex!}">
							  <option value="">--性别--</option>
							  <option value="1"
							  <%if(data.sex==true){%>
								  selected="selected"
						　　   <% } %>
							  >男</option>
							  <option value="0"
							  <%if(data.sex==false){%>
								  selected="selected"
						　　   <% } %>
							  >女</option>
							</select>
						  </div> 
						  </div> 
						  <div class="form-group col-md-5">
							<label class="col-sm-3 control-label no-padding-right" for="nationCode">民族：</label>
						    <div class="col-sm-9 inline-height">
								<select prefix="nation" name="nationCode" class="col-xs-10" placeholder="民族"  oldval="${data.nationCode!}">
							  <option value="">--民族--</option>
							  <% for(res in nationitem!){ %>
							  <option value="${res.code}"
							  <%if(has(data) && data.nationCode==res.code){%>
								  selected="selected"
								 <%}%>
							    >${res.name}</option>
						　　   <% } %>
							</select>
						  </div> 
						  </div> 
						  <div class="form-group col-md-5">
							<label class="col-sm-3 control-label no-padding-right" for="educationCode">学历：</label>
						    <div class="col-sm-9 inline-height">
								<select prefix="education" name="educationCode" class="col-xs-10" placeholder="学历"  oldval="${data.educationCode!}">
							  <option value="">--学历--</option>
							  <% for(res in educationitem!){ %>
							  <option value="${res.code}"
							  <%if(has(data) && data.educationCode==res.code){%>
								  selected="selected"
								 <%}%>
								 >${res.name}</option>
						　　   <% } %>
							</select>
						  </div> 
						  </div> 
						  <div class="form-group col-md-5">
							<label class="col-sm-3 control-label no-padding-right" for="maritalStatusCode">婚姻状况：</label>
						    <div class="col-sm-9 inline-height">
								<select prefix="maritalStatus" name="maritalStatusCode" class="col-xs-10" placeholder="婚姻状况"  oldval="${data.maritalStatusCode!}">
							  <option value="">--婚姻状况--</option>
							  <% for(res in maritalStatusitem!){ %>
							  <option value="${res.code}"
							  <%if(has(data) && data.maritalStatusCode==res.code){%>
								  selected="selected"
								 <%}%>
								 >${res.name}</option>
						　　   <% } %>
							</select>
						  </div> 
						  </div> 
		  		 </div>
		  		 <div class="col-xs-12 "  >
			  	 		<div class="col-xs-12 form-group">
							<label class="col-sm-1 control-label no-padding-right" for="maritalStatusCode">家庭住址：</label>
						    <div id="homeAddress" class="citys col-md-11">
								<input type="hidden" name="a.id" value="${data.homeAddressId!}">
				                <input type="hidden" valid="true" name="a.address" oldval="${data.homeAddress!}" value="${data.homeAddress!}">
				                <input type="hidden" valid="true" class="home" index="1" name="a.provinceName" oldval="${data.homeProvinceName!}" value="${data.homeProvinceName!}">
				                <input type="hidden" valid="true" class="home" index="2" name="a.cityName" oldval="${data.homeCityName!}" value="${data.homeCityName!}">
				                <input type="hidden" valid="true" class="home" index="3" name="a.districtName" oldval="${data.homeDistrictName!}" value="${data.homeDistrictName!}">
				                <p style="width:100%" width="100%">
				                    <select prefix="a.province" novalid="true" name="a.provinceCode" oldval="${data.homeProvinceCode!}" value="${data.homeProvinceCode!}"></select>
				                    <select prefix="a.city" novalid="true" name="a.cityCode" oldval="${data.homeCityCode!}" value="${data.homeCityCode!}"></select>
				                    <select prefix="a.district" novalid="true" name="a.districtCode" oldval="${data.homeDistrictCode!}" value="${data.homeDistrictCode!}"></select>
				                    <input type="text" index="4" style="width:300px" oldval="${data.homeDetailAddress!}" value="${data.homeDetailAddress!}" name="a.detailAddress" placeholder="详情地址" class="home validate[maxSize[200]]" />
				                </p>
				            </div>
						  </div> 
			  	  </div>
		  		 <div class="col-xs-12 "  >
			  	 		<div class="col-xs-12 form-group">
							<label class="col-sm-1 control-label no-padding-right" for="maritalStatusCode">当前住址：</label>
						    <div id="currentAddress" class="citys col-md-11">
								<input type="hidden" name="c.id" value="${data.currentAddressId!}">
				                <input type="hidden" valid="true" name="c.address" oldval="${data.currentAddress!}" value="${data.currentAddress!}">
				                <input type="hidden" valid="true" class="current" index="1" name="c.provinceName" oldval="${data.currentProvinceName!}" value="${data.currentProvinceName!}">
				                <input type="hidden" valid="true" class="current" index="2" name="c.cityName" oldval="${data.currentCityName!}" value="${data.currentCityName!}">
				                <input type="hidden" valid="true" class="current" index="3" name="c.districtName" oldval="${data.currentDistrictName!}" value="${data.currentDistrictName!}">
				                <p style="width:100%" width="100%">
				                    <select prefix="c.province" novalid="true" name="c.provinceCode" oldval="${data.currentProvinceCode!}" value="${data.currentProvinceCode!}"></select>
				                    <select prefix="c.city" novalid="true" name="c.cityCode" oldval="${data.currentCityCode!}" value="${data.currentCityCode!}"></select>
				                    <select prefix="c.district" novalid="true" name="c.districtCode" oldval="${data.currentDistrictCode!}" value="${data.currentDistrictCode!}"></select>
				                    <input type="text" index="4" style="width:300px" oldval="${data.currentDetailAddress!}" value="${data.currentDetailAddress!}" name="c.detailAddress" placeholder="详情地址" class="current validate[maxSize[200]]" />
				                </p>
				            </div>
						  </div> 
			  	  </div>
<%} %>
 